package com.swiot.biz.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.swiot.common.annotation.Excel;
import com.swiot.common.core.domain.BaseEntity;

/**
 * 模板基础对象 biz_template
 * 
 * @author kingdom
 * @date 2025-08-25
 */
public class Template extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private String id;

    /** 模板名称 */
    @Excel(name = "模板名称")
    private String templateName;

    /** 模板描述 */
    @Excel(name = "模板描述")
    private String templateDescription;

    /** 发布状态 */
    @Excel(name = "发布状态")
    private Long templatePublishStatus;

    /** 模板原文 */
    private String templateContent;

    /** 模板内容视图 */
    private String templateContentView;

    /** 字段行列 */
    private String fieldRowCol;

    /** 数据行列 */
    private String dataRowCol;

    /** 告警行列 */
    private String alarmRowCol;

    /** 字段行键 */
    private String fieldRowKey;

    /** 告警行键 */
    private String alarmRowKey;

    /** 字段对象 */
    private String fieldObject;

    /** 数据表名 */
    @Excel(name = "数据表名")
    private String templateTable;

    /** 告警表名 */
    @Excel(name = "告警表名")
    private String templateTableAlarm;
    

    /** 删除标志 */
    private String delFlag;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedTime;

    /** 删除时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "删除时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deletedTime;

    /** 创建人用户ID */
    private String createdById;

    /** 最后更新人用户ID */
    private String updatedById;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createdBy;

    /** 最后更新人 */
    @Excel(name = "最后更新人")
    private String updatedBy;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setTemplateName(String templateName) 
    {
        this.templateName = templateName;
    }

    public String getTemplateName() 
    {
        return templateName;
    }
    public void setTemplateDescription(String templateDescription) 
    {
        this.templateDescription = templateDescription;
    }

    public String getTemplateDescription() 
    {
        return templateDescription;
    }
    public void setTemplatePublishStatus(Long templatePublishStatus) 
    {
        this.templatePublishStatus = templatePublishStatus;
    }

    public Long getTemplatePublishStatus() 
    {
        return templatePublishStatus;
    }
    public void setTemplateContentView(String templateContentView) 
    {
        this.templateContentView = templateContentView;
    }

    public String getTemplateContentView() 
    {
        return templateContentView;
    }
    public void setTemplateContent(String templateContent) 
    {
        this.templateContent = templateContent;
    }

    public String getTemplateContent() 
    {
        return templateContent;
    }
    public void setFieldRowCol(String fieldRowCol)
    {
        this.fieldRowCol = fieldRowCol;
    }

    public String getFieldRowCol()
    {
        return fieldRowCol;
    }
    public void setDataRowCol(String dataRowCol)
    {
        this.dataRowCol = dataRowCol;
    }

    public String getDataRowCol()
    {
        return dataRowCol;
    }
    public void setAlarmRowCol(String alarmRowCol)
    {
        this.alarmRowCol = alarmRowCol;
    }

    public String getAlarmRowCol()
    {
        return alarmRowCol;
    }
    public void setFieldRowKey(String fieldRowKey)
    {
        this.fieldRowKey = fieldRowKey;
    }

    public String getFieldRowKey()
    {
        return fieldRowKey;
    }
    public void setAlarmRowKey(String alarmRowKey)
    {
        this.alarmRowKey = alarmRowKey;
    }

    public String getAlarmRowKey()
    {
        return alarmRowKey;
    }
    public void setFieldObject(String fieldObject)
    {
        this.fieldObject = fieldObject;
    }

    public String getFieldObject()
    {
        return fieldObject;
    }
    public void setTemplateTable(String templateTable)
    {
        this.templateTable = templateTable;
    }

    public String getTemplateTable()
    {
        return templateTable;
    }
    public void setTemplateTableAlarm(String templateTableAlarm)
    {
        this.templateTableAlarm = templateTableAlarm;
    }

    public String getTemplateTableAlarm()
    {
        return templateTableAlarm;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }
    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }
    public void setUpdatedTime(Date updatedTime) 
    {
        this.updatedTime = updatedTime;
    }

    public Date getUpdatedTime() 
    {
        return updatedTime;
    }
    public void setDeletedTime(Date deletedTime) 
    {
        this.deletedTime = deletedTime;
    }

    public Date getDeletedTime() 
    {
        return deletedTime;
    }
    public void setCreatedById(String createdById) 
    {
        this.createdById = createdById;
    }

    public String getCreatedById() 
    {
        return createdById;
    }
    public void setUpdatedById(String updatedById) 
    {
        this.updatedById = updatedById;
    }

    public String getUpdatedById() 
    {
        return updatedById;
    }
    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }
    public void setUpdatedBy(String updatedBy) 
    {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy() 
    {
        return updatedBy;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("templateName", getTemplateName())
            .append("templateDescription", getTemplateDescription())
            .append("templatePublishStatus", getTemplatePublishStatus())
            .append("templateContent", getTemplateContent())
            .append("templateContentView", getTemplateContentView())
            .append("fieldRowCol", getFieldRowCol())
            .append("dataRowCol", getDataRowCol())
            .append("alarmRowCol", getAlarmRowCol())
            .append("fieldRowKey", getFieldRowKey())
            .append("alarmRowKey", getAlarmRowKey())
            .append("fieldObject", getFieldObject())
            .append("templateTable", getTemplateTable())
            .append("templateTableAlarm", getTemplateTableAlarm())
            .append("delFlag", getDelFlag())
            .append("createdTime", getCreatedTime())
            .append("updatedTime", getUpdatedTime())
            .append("deletedTime", getDeletedTime())
            .append("createdById", getCreatedById())
            .append("updatedById", getUpdatedById())
            .append("createdBy", getCreatedBy())
            .append("updatedBy", getUpdatedBy())
            .toString();
    }
}